package com.api.core.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.net.InetAddress;

@Component
public class WxConfig {

    @Value("${wx_appid}")
    public String appid;

    @Value("${wx_secret}")
    public String secret;

    @Value("${spring.application.name}")
    public String application_name;

    public String redis_lock_value = application_name+ InetAddress.getLocalHost().getHostAddress();

    public WxConfig() throws IOException {

    }

}
